package com.central.scheduler.common.entity;

import com.central.scheduler.common.enums.DependResult;
import com.central.scheduler.common.enums.ExecutionStatus;
import lombok.Getter;
import lombok.Setter;

/**
 * @author Tindy
 * @date 2021/11/1
 * @describe
 * dependent item
 */
@Getter
@Setter
public class DependentItem {
    private String proName;
    private Long definitionCode;
    private String depTasks;
    private String cycle;
    private String dateValue;
    private DependResult dependResult;
    private ExecutionStatus status;

    public String getKey() {
        return String.format("%d-%s-%s-%s",
                getDefinitionCode(),
                getDepTasks(),
                getCycle(),
                getDateValue());
    }
}
